Semidefinite embedding
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
Maximum Variance Unfolding (MVU), also known as Semidefinite Embedding (SDE), is an algorithm in computer science that uses semidefinite programming to perform non-linear dimensionality reduction of high-dimensional vectorial input data.cite-ref-1[1]cite-ref-2[2]cite-ref-3[3]
It is motivated by the observation that kernel Principal Component Analysis (kPCA) does not reduce the data dimensionality,cite-ref-4[4] as it leverages the Kernel trick to non-linearly map the original data into an inner-product space.
Contents
• See also
• Notes
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Algorithm
MVU creates a mapping from the high dimensional input vectors to some low dimensional Euclidean vector space in the following steps:cite-ref-5[5]
1. A neighbourhood graph is created. Each input is connected with its k-nearest input vectors (according to Euclidean distance metric) and all k-nearest neighbors are connected with each other. If the data is sampled well enough, the resulting graph is a discrete approximation of the underlying manifold.
2. The neighbourhood graph is "unfolded" with the help of semidefinite programming. Instead of learning the output vectors directly, the semidefinite programming aims to find an inner product matrix that maximizes the pairwise distances between any two inputs that are not connected in the neighbourhood graph while preserving the nearest neighbors distances.
3. The low-dimensional embedding is finally obtained by application of multidimensional scaling on the learned inner product matrix.
Optimization formulation
| X i − − X j | 2 = | Y i − − Y j | 2 {\displaystyle |X_{i}-X_{j}|^{2}=|Y_{i}-Y_{j}|^{2}\,\!}
Let G , K {\displaystyle G,K\,\!} be the Gram matrices of X {\displaystyle X\,\!} and Y {\displaystyle Y\,\!} (i.e.: G i j = X i ⋅ ⋅ X j , K i j = Y i ⋅ ⋅ Y j {\displaystyle G_{ij}=X_{i}\cdot X_{j},K_{ij}=Y_{i}\cdot Y_{j}\,\!} ). We can express the above constraint for every neighbor points i , j {\displaystyle i,j\,\!} in term of G , K {\displaystyle G,K\,\!} :cite-ref-10[10]cite-ref-11[11]
G i i + G j j − − G i j − − G j i = K i i + K j j − − K i j − − K j i {\displaystyle G_{ii}+G_{jj}-G_{ij}-G_{ji}=K_{ii}+K_{jj}-K_{ij}-K_{ji}\,\!}
0 = | ∑ ∑ i Y i | 2 ⇔ ⇔ ( ∑ ∑ i Y i ) ⋅ ⋅ ( ∑ ∑ i Y i ) ⇔ ⇔ ∑ ∑ i , j Y i ⋅ ⋅ Y j ⇔ ⇔ ∑ ∑ i , j K i j {\displaystyle 0=|\sum _{i}Y_{i}|^{2}\Leftrightarrow (\sum _{i}Y_{i})\cdot (\sum _{i}Y_{i})\Leftrightarrow \sum _{i,j}Y_{i}\cdot Y_{j}\Leftrightarrow \sum _{i,j}K_{ij}}
T ( Y ) = 1 2 N ∑ ∑ i , j | Y i − − Y j | 2 {\displaystyle T(Y)={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}}
Intuitively, maximizing the function above is equivalent to pulling the points as far away from each other as possible and therefore "unfold" the manifold. The local isometry constraint cite-ref-18[18]
Let τ τ = m a x { η η i j | Y i − − Y j | 2 } {\displaystyle \tau =max\{\eta _{ij}|Y_{i}-Y_{j}|^{2}\}\,\!} where η η i j := { 1 if i is a neighbour of j 0 otherwise . {\displaystyle \eta _{ij}:={\begin{cases}1&{\mbox{if}}\ i{\mbox{ is a neighbour of }}j\\0&{\mbox{otherwise}}.\end{cases}}}
prevents the objective function from diverging (going to infinity).
T ( Y ) = 1 2 N ∑ ∑ i , j | Y i − − Y j | 2 ≤ ≤ 1 2 N ∑ ∑ i , j ( N τ τ ) 2 = N 3 τ τ 2 2 {\displaystyle T(Y)={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}\leq {\dfrac {1}{2N}}\sum _{i,j}(N\tau )^{2}={\dfrac {N^{3}\tau ^{2}}{2}}\,\!}
T ( Y ) = 1 2 N ∑ ∑ i , j | Y i − − Y j | 2 = 1 2 N ∑ ∑ i , j ( Y i 2 + Y j 2 − − Y i ⋅ ⋅ Y j − − Y j ⋅ ⋅ Y i ) = 1 2 N ( ∑ ∑ i , j Y i 2 + ∑ ∑ i , j Y j 2 − − ∑ ∑ i , j Y i ⋅ ⋅ Y j − − ∑ ∑ i , j Y j ⋅ ⋅ Y i ) = 1 2 N ( ∑ ∑ i , j Y i 2 + ∑ ∑ i , j Y j 2 − − 0 − − 0 ) = 1 N ( ∑ ∑ i Y i 2 ) = 1 N ( T r ( K ) ) {\displaystyle {\begin{aligned}T(Y)&{}={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}\\&{}={\dfrac {1}{2N}}\sum _{i,j}(Y_{i}^{2}+Y_{j}^{2}-Y_{i}\cdot Y_{j}-Y_{j}\cdot Y_{i})\\&{}={\dfrac {1}{2N}}(\sum _{i,j}Y_{i}^{2}+\sum _{i,j}Y_{j}^{2}-\sum _{i,j}Y_{i}\cdot Y_{j}-\sum _{i,j}Y_{j}\cdot Y_{i})\\&{}={\dfrac {1}{2N}}(\sum _{i,j}Y_{i}^{2}+\sum _{i,j}Y_{j}^{2}-0-0)\\&{}={\dfrac {1}{N}}(\sum _{i}Y_{i}^{2})={\dfrac {1}{N}}(Tr(K))\\\end{aligned}}\,\!}
Maximize T r ( K ) subject to K ⪰ ⪰ 0 , ∑ ∑ i j K i j = 0 and G i i + G j j − − G i j − − G j i = K i i + K j j − − K i j − − K j i , ∀ ∀ i , j where η η i j = 1 , {\displaystyle {\begin{aligned}&{\text{Maximize}}&&Tr(\mathbf {K} )\\&{\text{subject to}}&&\mathbf {K} \succeq 0,\sum _{ij}\mathbf {K} _{ij}=0\\&{\text{and}}&&G_{ii}+G_{jj}-G_{ij}-G_{ji}=K_{ii}+K_{jj}-K_{ij}-K_{ji},\forall i,j{\mbox{ where }}\eta _{ij}=1,\end{aligned}}}
After the Gram matrix K {\displaystyle K\,\!} is learned by semidefinite programming, the output Y {\displaystyle Y\,\!} can be obtained via Cholesky decomposition.
In particular, the Gram matrix can be written as K i j = ∑ ∑ α α = 1 N ( λ λ α α V α α i V α α j ) {\displaystyle K_{ij}=\sum _{\alpha =1}^{N}(\lambda _{\alpha }V_{\alpha i}V_{\alpha j})\,\!} where V α α i {\displaystyle V_{\alpha i}\,\!} is the i-th element of eigenvector V α α {\displaystyle V_{\alpha }\,\!} of the eigenvalue λ λ α α {\displaystyle \lambda _{\alpha }\,\!} .cite-ref-27[27]cite-ref-28[28]
See also
Notes
cite-note-11. ↑ Weinberger, Sha and Saul 2004a
cite-note-22. ↑ Weinberger and Saul 2004b
cite-note-33. ↑ Weinberger and Saul 2006
cite-note-44. ↑ Lawrence 2012, page 1612
cite-note-55. ↑ Weinberger, Sha and Saul 2004a, page 7.
cite-note-66. ↑ Linial, London and Rabinovich 1995
cite-note-77. ↑ Weinberger, Sha and Saul 2004a, page 3, equation 8
cite-note-88. ↑ Weinberger and Saul 2004b, page 3, equation 2
cite-note-99. ↑ Weinberger and Saul 2006, page 4, equation 2
cite-note-1010. ↑ Weinberger, Sha and Saul 2004a, page 3, equation 9
cite-note-1111. ↑ Weinberger and Saul 2004b, page 3, equation 3
cite-note-1212. ↑ Weinberger, Sha and Saul 2004a, page 3, equation 6
cite-note-1313. ↑ Weinberger and Saul 2004b, page 3, equation 5
cite-note-1414. ↑ Weinberger and Saul 2006, page 5, equation 8
cite-note-1515. ↑ Weinberger, Sha and Saul 2004a, page 4, equation 10
cite-note-1616. ↑ Weinberger and Saul 2004b, page 4, equation 6
cite-note-1717. ↑ Weinberger and Saul 2006, page 5, equation 4
cite-note-1818. ↑ Weinberger and Saul 2004b, page 4, equation 7
cite-note-1919. ↑ Weinberger and Saul 2004b, page 4, equation 8
cite-note-2020. ↑ Weinberger and Saul 2006, page 5, equation 6
cite-note-2121. ↑ Weinberger, Sha and Saul 2004a, page 4, equation 11
cite-note-2222. ↑ Weinberger and Saul 2004b, page 4, equation 9
cite-note-2323. ↑ Weinberger and Saul 2006, page 6, equations 10 to 13
cite-note-2424. ↑ Weinberger, Sha and Saul 2004a, page 4, section 3.3
cite-note-2525. ↑ Weinberger and Saul 2004b, page 4, equation 9
cite-note-2626. ↑ Weinberger and Saul 2006, page 6, equations 10 to 13
cite-note-2727. ↑ Weinberger and Saul 2004b, page 4, equation 10
cite-note-2828. ↑ Weinberger and Saul 2006, page 7, equations 14
cite-note-2929. ↑ Weinberger and Saul 2004b, page 4, equation 11
cite-note-3030. ↑ Weinberger and Saul 2006, page 7, equations 15
References
• citereflinial-london-and-rabinovich1995Linial, London and Rabinovich, Nathan, Eran and Yuri (1995). "The geometry of graphs and some of its algorithmic applications". Combinatorica. 15 (2): 215–245. doi:10.1007/BF01200757. S2CID 5071936.{{cite journal}}: CS1 maint: multiple names: authors list (link)
• citerefweinberger-sha-and-saul2004aWeinberger, Sha and Saul, Kilian Q., Fei and Lawrence K. (4 July 2004a). Learning a kernel matrix for nonlinear dimensionality reduction. Proceedings of the Twenty First International Conference on Machine Learning (ICML 2004). Banff, Alberta, Canada.{{cite conference}}: CS1 maint: multiple names: authors list (link)
• citerefweinberger-and-saul2004bWeinberger and Saul, Kilian Q. and Lawrence K. (27 June 2004b). Unsupervised learning of image manifolds by semidefinite programming. 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. Vol. 2.
• citereflawrence2012Lawrence, Neil D (2012). "A unifying probabilistic perspective for spectral dimensionality reduction: insights and new models". Journal of Machine Learning Research. 13 (May): 1612. arXiv:1010.4830. Bibcode:2010arXiv1010.4830L.
Additional material